package com.haoe.service;

import com.haoe.common.CommonResult;
import com.haoe.dto.query.OrderInfoQuery;
import com.haoe.entity.Customer;
import com.haoe.entity.OrderDish;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author: 80305082
 * @Date: 2021/3/12
 * @Description: 顾客service
 */
public interface CustomerService {

    Customer getCustomerInfo(Long id);

    @Transactional(rollbackFor = Exception.class)
    CommonResult<Object> submitOrder(OrderInfoQuery orderInfoQuery) throws Exception;

    @Transactional(rollbackFor = Exception.class)
    void batchSaveOrderDish(OrderInfoQuery orderInfoQuery, Long orderId) throws Exception;
}
